package priv.winnine.entity.enums;

import lombok.Getter;

@Getter
public enum ResultEnum {

    SUCCESS(200, "操作成功"),
    FAIL(-1, "操作失败"),
    PROPERTY_ERROR(8000, "参数校验异常"),
    SIGNATURE_CHECK_FAIL(8001, "signature验证不通过"),
    TIMESTAMP_NOT_IN_RANGE(8002, "timestamp不在合理的范围内"),
    REQUEST_BODY_ERROR(8003, "RequestBody格式错误"),
    APP_ID_NOT_AVAILABLE(8004, "appID不可用"),
    NOT_SUPPORT_MEDIA_TYPE(8005, "不支持的媒体类型"),
    INSUFFICIENT_AUTHORITY(8006, "权限不足");

    private Integer code;
    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
